import request from '@/config/axios'

// 门店关注用户 VO
export interface ConcernUserVO {
  id: number // 自增主键
  userId: number // 用户ID
  shopId: number // 门店ID
}

// 门店关注用户 API
export const ConcernUserApi = {
  // 查询门店关注用户分页
  getConcernUserPage: async (params: any) => {
    return await request.get({ url: `/store/concern-user/page`, params })
  },

  // 查询门店关注用户详情
  getConcernUser: async (id: number) => {
    return await request.get({ url: `/store/concern-user/get?id=` + id })
  },

  // 新增门店关注用户
  createConcernUser: async (data: ConcernUserVO) => {
    return await request.post({ url: `/store/concern-user/create`, data })
  },

  // 修改门店关注用户
  updateConcernUser: async (data: ConcernUserVO) => {
    return await request.put({ url: `/store/concern-user/update`, data })
  },

  // 删除门店关注用户
  deleteConcernUser: async (id: number) => {
    return await request.delete({ url: `/store/concern-user/delete?id=` + id })
  },

  // 导出门店关注用户 Excel
  exportConcernUser: async (params) => {
    return await request.download({ url: `/store/concern-user/export-excel`, params })
  },
}